package com.csgsystems.im.survey;

public enum Category {
	Web(1, "Web Survey"), Technician(2, "Technician Survey"), Counter(5, "Counter Survey");
	
	private int id = 0;
	private String name = null;
	
	private Category(int id, String name) {
		this.id = id;
		this.name = name;
		
	}
	
	public int getId() {
		return this.id;
		
	}
	
	public String getName() {
		return this.name;
	}
	
	@Override
	public String toString() {
		return this.name;
		
	}
	
	public static Category valueOf(int id) {
		switch(id) {
		case 1: return Web;
		case 2: return Technician;
		case 5: return Counter;
		default: return null;
		
		}
		
	}
	
}
